using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Boss : MonoBehaviour
{
    public GameObject play;
    void Start()
    {
        play = GameObject.Find("Canvas/Player");
    }

    // Update is called once per frame
    void Update()
    {
        Vector2 dir = (play.transform.localPosition - transform.localPosition).normalized;
        transform.Translate(dir * Time.deltaTime * 100);
    }
}
